package com.service;

import com.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * TODO
 *
 * @author 95741
 * @version 1.0
 * @date 2020/12/30 19:48
 */
public interface StudentService {

    Student selectByPrimaryKey(Integer id);

    List<Student> findAllStudent();


    List<Student> findStudent(Student student);

    int insertStudent(Student student);


    int delete(String idstr);

    Student findbyid(Integer id);


    int updateByPrimaryKey(Student record);

    void transferMoney(Student newStudent, Student oldStudent, Integer allmoney,Integer newmoney) throws Exception;

    String selectNameByid(@Param("id") Integer id);

    Integer selectIdByName(@Param("username") String username);


}
